package com.dayuanit.dy16.atm.controller;

import com.dayuanit.dy16.atm.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class EmailController extends BaseController {

    @Autowired
    private IUserService iUserService;

    @RequestMapping(value = "/user/activeEmail")
    public String activeEmail(String email, long userId, String sign, long endTime) {
        System.out.println("激活邮箱email=" + email + " userId=" + userId + " sign=" + sign);
        iUserService.activeEmail(userId, email, sign, endTime);
        return "index";
    }
}
